package com.campus.shop.controller.web.vo;

import lombok.Data;

/**
 * @Description:
 * @Author: xr
 * @Date: 2024/5/23 17:35
 */
@Data
public class OrderStatusVo {
    private Integer status;
    private Integer statusCount;
    private String statusIntro;
    public void setStatusIntro(){
        switch (this.status){
            case 1:
                this.statusIntro = "支付成功";
                break;
            case 2:
                this.statusIntro = "待付款";
                break;
            case 3:
                this.statusIntro = "支付失败";
                break;
            case 4:
                this.statusIntro = "待发货";
                break;
            case 5:
                this.statusIntro = "待收货";
                break;
            case 6:
                this.statusIntro = "待评价";
                break;
            case 7:
                this.statusIntro = "退款";
                break;
            default:
                this.statusIntro = "未知";
                break;

        }

    }
}
